module.exports = {
    css: {
        loaderOptions: {
          sass: {
            data: `@import "~@/assets/css/variables.scss";`
          },
        }
      },
    pluginOptions: {
        electronBuilder: {
            nodeIntegration: true,
            builderOptions: {
                appId: "com.cq.ccb.hefeibinghuxinqu",
                copyright: "Copyright©2016-2020 京东方科技集团股份有限公司",
                productName: "合肥滨湖新区营业厅",//项目名，也是生成的安装文件名，即aDemo.exe
                electronDownload: {
                    "mirror": "https://npm.taobao.org/mirrors/electron/"
                },
                asar: false,
                win: {
                    icon: "build/icons/ccb.ico",
                    target: [
                        {
                            target: "nsis",
                            arch: [
                                "ia32"
                            ]
                        }
                    ]
                },
                nsis: {
                    perMachine: true,
                    oneClick: false,
                    allowElevation: true,
                    allowToChangeInstallationDirectory: true,
                    installerIcon: "./build/icons/ccb.ico",
                    uninstallerIcon: "./build/icons/ccb.ico",
                    installerHeaderIcon: "./build/icons/ccb.ico",
                    createDesktopShortcut: true,
                    createStartMenuShortcut: true
                },
            }
        }
    }
}


